package com.itqf.service.impl;

import com.itqf.dao.AdminDao;
import com.itqf.dao.impl.AdminDaoImpl;
import com.itqf.entity.Admin;
import com.itqf.service.AdminService;

import java.sql.SQLException;

public class AdminServiceImpl implements AdminService {

    //初始化dao层对象
    private static AdminDao adminDao = new AdminDaoImpl();

    @Override
    public Admin checkedUser(String username) throws SQLException {

        Admin admin = adminDao.selectByUsername(username);
        return admin;
    }
}
